package com.hope.hotel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hope.hotel.common.Result;
import com.hope.hotel.entity.DAO.LoginDAO;
import com.hope.hotel.entity.DAO.RegisterDAO;
import com.hope.hotel.entity.DAO.TravelerDAO;
import com.hope.hotel.entity.DAO.UserInfoDAO;
import com.hope.hotel.entity.po.User;

/**
 * @作者 TD
 * @日期 2025/5/18
 */
public interface UserService extends IService<User> {
    Result login(LoginDAO loginDAO);

    Result register(RegisterDAO registerDAO);

    Result<String> sendCode(String email);

    Result checkLogin(String token);

    Result addTraveler(TravelerDAO TravelerDAO, String userId);

    Result updateInfo(UserInfoDAO travelerDAO, String userId);

    Result getTravelers(String userId);

    Result updateTraveler(TravelerDAO travelerDAO, String userId);

    Result deleteTraveler(String id, String userId);
}
